Tables [dbo].[Sub_Component_Ref]
Properties
PropertyValue
Created10:31:39 AM Tuesday, March 02, 2010
Last Modified11:40:08 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_Sub_Component_Ref: ComponentCode\SubComponentCodeComponentCodechar(2)2
No
Cluster Primary Key PK_Sub_Component_Ref: ComponentCode\SubComponentCodeSubComponentCodechar(2)2
No
SubComponentDescvarchar(30)30
No
TableNamevarchar(128)128
Yes
KeyColumnNamevarchar(128)128
Yes
ActiveFlagchar(1)1
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_Sub_Component_Ref: ComponentCode\SubComponentCodePK_Sub_Component_RefComponentCode, SubComponentCode
Yes
Permissions
TypeActionOwning Principal
GrantDeleteIMIS
GrantInsertIMIS
GrantReferencesIMIS
GrantSelectIMIS
GrantUpdateIMIS
SQL Script
CREATE TABLE [dbo].[Sub_Component_Ref]
(
[ComponentCode] [char] (2) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SubComponentCode] [char] (2) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SubComponentDesc] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[TableName] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[KeyColumnName] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ActiveFlag] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[Sub_Component_Ref] ADD CONSTRAINT [PK_Sub_Component_Ref] PRIMARY KEY CLUSTERED ([ComponentCode], [SubComponentCode]) ON [PRIMARY]
GO
GRANT REFERENCES ON  [dbo].[Sub_Component_Ref] TO [IMIS]
GRANT SELECT ON  [dbo].[Sub_Component_Ref] TO [IMIS]
GRANT INSERT ON  [dbo].[Sub_Component_Ref] TO [IMIS]
GRANT DELETE ON  [dbo].[Sub_Component_Ref] TO [IMIS]
GRANT UPDATE ON  [dbo].[Sub_Component_Ref] TO [IMIS]
GO
Uses